<template>
  <div class="userCommon">
    <div class="info-header">
      <div class="header-title">用户评价</div>
      <div class="header-more">
        更多
        <i class="arrow-right"></i>
      </div>
      <div class="info-user">
        <img :src="commentInfo.user.avatar" alt="" />
        <span>{{ commentInfo.user.uname }}</span>
      </div>
      <div class="info-other">
        <span class="date">{{ commentInfo.user.uname }}: &nbsp;</span>
        <span>{{ commentInfo.content }}</span>
      </div>
      <div class="info-imgs">
        <img
          :src="item"
          v-for="(item, index) in commentInfo.images"
          :key="index"
        />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  // created() {
  //   console.log(this.commentInfo)
  // },
  props: ['commentInfo']
}
</script>

<style scoped>
.info-user img {
  vertical-align: middle;
  width: 40px;
  margin: 20px;
  border-radius: 50%;
}
.info-user span {
  font-size: 14px;
}
.header-title {
  font-size: 20px;
  color: orange;
}
.header-more {
  float: right;
  color: blueviolet;
}
.date {
  margin-left: 10px;
  margin-right: 10px;
  font-size: 14px;
  line-height: 18px;
}

.info-other {
  color: #999;
}
</style>
